package cn.wolfcode.edu.util;

import java.util.Calendar;
import java.util.Date;

/**
 * Created by abb on 2018-06-22.
 */
public class DateUtil {
    public static Date getEndDate(Date date) {
        Calendar c = Calendar.getInstance();
        c.setTime(date);// 把endDate的时间赋给日历类
        // 设置为23点59分59秒
        c.set(Calendar.HOUR_OF_DAY, 23);
        c.set(Calendar.MINUTE, 59);
        c.set(Calendar.SECOND, 59);
        return c.getTime();// 日历类-->日期类
    }
}
